//
//  FindPhotoCollectionCell.m
//  Find
//
//  Created by lanou3g on 15/10/27.
//  Copyright © 2015年 Reiko. All rights reserved.
//

#import "FindPhotoCollectionCell.h"

@implementation FindPhotoCollectionCell


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubViews];
    }
    return self;
}

#pragma mark -- 布局collection
- (void)addSubViews{
    self.mainImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kFindPhotoMainImageViewWidth, kFindPhotoMainImageViewHeight)];
    self.mainImageView.backgroundColor = [UIColor orangeColor];
    self.mainImageView.layer.masksToBounds = YES;
    self.mainImageView.layer.cornerRadius = kFindPhotoMainImageViewCornerRadius;
    [self.contentView addSubview:self.mainImageView];
    
    self.addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,self.mainImageView.bottom,kFindPhotoMainImageViewWidth,kFindPhotoAddressImageViewHight)];
//    self.addressLabel.backgroundColor = [UIColor grayColor];
    self.addressLabel.textColor = kFindListCellLabelTextColor;
    self.addressLabel.font = [UIFont systemFontOfSize:kFindPhotoAddressLabelFont];
    [self.contentView addSubview:self.addressLabel];
    
}




@end
